#app {

  .main-container {
    height: 100%;
    transition: margin-left .28s;
    position: relative;
  }

  .app-main {
    /*50 = navbar  */
    height: calc(100vh - 64px);
    width: 100%;
    position: relative;
    overflow: hidden;
    top: $topBarHeight;
  }

  .sidebar-container {
    transition: width 0.28s;
    // width: $topBarHeight !important;
    width: 100%;
    background-color: $menuBg;
    height: 64px;
    position: fixed;
    font-size: 0px;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;


    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .header-menu{
      display: inline-block;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    // &.has-logo {
    //   .el-scrollbar {
    //     height: calc(100% - 50px);
    //   }
    // }

    .is-horizontal {
      display: none;
    }

    a {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: flex-end;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;

    }
    .el-menu-item{
      height: 61px;
      line-height: 61px;
    }
    .el-menu-item.is-active {
      border-top: 3px solid white;
      background-color: rgba(95, 151, 224, 0.4) !important;
    }
    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
      }
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      min-width: $topBarHeight !important;
      background-color: $subMenuBg !important;

      &:hover {
        background-color: $subMenuHover !important;
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $topBarHeight !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: 100%;
    }

  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }
    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }
}
